package org.chs.ts.system.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.willa.business.sys.entity.SysUser;
import org.willa.common.vo.Result;
import org.willa.system.service.ITestService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wuwei
 * @date 2023/12/24
 * @apiNote
 */
@RestController
@RequestMapping("/api/v1/test" )
public class TestController {

    @Resource
    private ITestService testService;

    @GetMapping("/testRedis")
    public Result testRedis(){
        return Result.ok(testService.testRedis());
    }

    @PutMapping("/testMapper")
    public Result<List<SysUser>> testMapper(){
       return Result.ok(testService.testMapper());
    }
}
